/*
 * Copyright (c) 2015 /3 /29
 * 	      6 :22 : 11
 *               By: wupeiji
 *               Q  Q:757671834
 * 	      It is not easy to meet each other in such a big world
 */

package spring.security.maven.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import spring.security.maven.serviceImp.UserServiceImpl;

import javax.annotation.Resource;

/**
 * Created by wpj on 2015/3/27.
 * 作者：吴培基
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserServiceImpl userServiceImp;
    @RequestMapping("/get")
    public String getUser(){
        System.out.println("ById"+userServiceImp.selectByPrimaryKey(1));
      //  System.out.println("username"+userServiceImp.selectByUserName("757671834@qq.com").toString());
        return null;
    }
    @RequestMapping("/admin")
    public String admin(){
        System.out.println("管理员用户页面");
        return "admin/admin";
    }
    @RequestMapping("/common")
    public String user(){
        System.out.println("普通注册用户");
        return "user/user";
    }
}
